package com.enjoy.ch1;

/**
 * 这个类演示
 */
public class Test_1 {
    public static void main(String[] args) throws InterruptedException {

        System.out.println(Test_1_B.str);


    }
}

class Test_1_A {
    public static String str = "A str";

    static {
        System.out.println("A static block");
    }
}

class Test_1_B extends Test_1_A{

    static {
        System.out.println("B static block");
    }
}